# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         demo12.04
# Description:
# Author:       $赵怡蕾
# Date:         2019/3/18
#-------------------------------------------------------------------------------

import os
if os.path.exists('data.txt') and not os.path.exists('slink.txt'):
    # 建立软链接文件
    os.symlink('data.txt','slink.txt')
if os.path.exists('data.txt') and not os.path.exists('link.txt'):
    # 建立硬链接文件
    os.link('data.txt','link.txt')